﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="LigListesi.ascx.cs"
    Inherits="HPDMAS.UserControls.LigListesi" %>
<asp:GridView ID="GridView_LigListesi" runat="server" AllowPaging="True" AllowSorting="True"
    AutoGenerateColumns="False" DataKeyNames="LigID" DataSourceID="EntityDataSource1">
    <PagerSettings PageButtonCount="15" />
    <AlternatingRowStyle BackColor="#FF9966" />
    <Columns>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <asp:Button ID="Button1" runat="server" CausesValidation="True" CommandName="Update"
                    Text="Güncelle" />
                <asp:Button ID="Button2" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="Vazgeç" />
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" CausesValidation="False" CommandName="Edit"
                    Text="Düzenle" /><asp:Button ID="Button2" runat="server" CausesValidation="False"
                        CommandName="Delete" Text="Sil" />
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="LigAdı">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("LigAdi") %>' Width="100px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label2" runat="server" Text='<%# Bind("LigAdi") %>' Width="100px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="TakımSayısı">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox2" runat="server" Text='<%# Bind("LigTakimSayisi") %>' Width="40px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label3" runat="server" Text='<%# Bind("LigTakimSayisi") %>' Width="40px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="OyuncuSayısı">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("LigOyuncuSayisi") %>' Width="40px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label4" runat="server" Text='<%# Bind("LigOyuncuSayisi") %>' Width="40px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="YedekOyuncuSayısı">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox4" runat="server" Text='<%# Bind("LigYedekOyuncuSayisi") %>'
                    Width="40px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label5" runat="server" Text='<%# Bind("LigYedekOyuncuSayisi") %>'
                    Width="40px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="OyuncuDeğisikliğiSayısı">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox5" runat="server" Text='<%# Bind("LigOyuncuDegisikligiSayisi") %>'
                    Width="40px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label6" runat="server" Text='<%# Bind("LigOyuncuDegisikligiSayisi") %>'
                    Width="40px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="MüsabakaSüre">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox6" runat="server" Text='<%# Bind("LigMusabakaSuresi") %>'
                    Width="80px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label7" runat="server" Text='<%# Bind("LigMusabakaSuresi") %>' Width="80px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="UzatmaSüre">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox7" runat="server" Text='<%# Bind("LigUzatmaSuresi") %>' Width="80px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label8" runat="server" Text='<%# Bind("LigUzatmaSuresi") %>' Width="80px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="SahaKaleÖlçü">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox8" runat="server" Text='<%# Bind("LigSahaKaleOlcusu") %>'
                    Width="80px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label9" runat="server" Text='<%# Bind("LigSahaKaleOlcusu") %>' Width="80px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
            <ItemStyle Width="20px" />
        </asp:TemplateField>
        <asp:TemplateField HeaderText="SonuçBildirim">
            <EditItemTemplate>
                <asp:TextBox ID="TextBox9" runat="server" Text='<%# Bind("LigFederasyonaSonucBildirimTarihi", "{0:dd/MM/yyyy}") %>'
                    Width="80px"></asp:TextBox>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:Label ID="Label10" runat="server" Text='<%# Bind("LigFederasyonaSonucBildirimTarihi", "{0:dd/MM/yyyy}") %>'
                    Width="80px"></asp:Label>
            </ItemTemplate>
            <HeaderStyle HorizontalAlign="Left" />
        </asp:TemplateField>
    </Columns>
    <EmptyDataTemplate>
        Kayıt bulunamadı.
    </EmptyDataTemplate>
    <HeaderStyle BackColor="Black" ForeColor="White" />
    <RowStyle Height="30px" />
</asp:GridView>
<asp:EntityDataSource ID="EntityDataSource1" runat="server" ConnectionString="name=HPDMASEntities"
    DefaultContainerName="HPDMASEntities" EnableDelete="True" EnableFlattening="False"
    EnableUpdate="True" EntitySetName="Lig" AutoGenerateWhereClause="True">
</asp:EntityDataSource>
